package action;

import java.util.Map;

import com.opensymphony.xwork2.ActionContext;

public class LogoutLogic extends BusinessLogic{

	public String execute() throws Exception {
		
		System.out.println("LogarLogic: Executando... ");
		
		//String fwd = req.getParameter("sucesso");

/*		HttpSession session = req.getSession();
		session.removeAttribute("associado");

				RequestDispatcher rd = req.getRequestDispatcher("/"+fwd);
		rd.forward(req, res);
		
*/		
		System.out.print(" ...OK");		

		
		Map session = ActionContext.getContext().getSession();
		session.remove("associado");
		return SUCCESS;

	}
}
